package cn.kgc.springcloudalibaba.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author: mosin
 * @version: v1.0  2023/1/9
 */
@RequestMapping("order")
@RestController
public class OrderController {

    @Value("${server.port}")
    private String port;

    @RequestMapping("m1")
    public String method1(){
        return "OrderController ok port :"+port;
    }

    @RequestMapping("m2")
    public String method2(Integer id){
        return "OrderController ok port :"+port+"id = "+id;
    }
}
